;-| Button Remapping |-----------------------------------------------------
[Remap]
x = x
y = a
z = z
a = y
b = b
c = c
s = s


;-| Default Values |-------------------------------------------------------
[Defaults]
; Default value for the "time" parameter of a Command. Minimum 1.
command.time = 15

; Default value for the "buffer.time" parameter of a Command. Minimum 1,
; maximum 30.
command.buffer.time = 1

;--------------------------------------------------------------------------
[Command]
name = "AI1"
command = U, D, U, D, U, D, U, D
time = 1
[Command]
name = "AI2"
command = U, D, U, D, U, D, U ,D,U
time = 1
[Command]
name = "AI3"
command = U, D, U, D, U, D, U ,D ,U ,D
time = 1
[Command]
name = "AI4"
command = U, D, U, D, U, D, U, D ,b
time = 1
[Command]
name = "AI5"
command = U, D, D, D, U, D, U, D, U
time = 1
[Command]
name = "AI6"
command = U, U, U, D, U, D, U ,D ,U ,D
time = 1
[Command]
name = "AI7"
command = U, D, U, D, U, D, U, D ,x
time = 1
[Command]
name = "AI8"
command = U, D, U, D, U, D, U ,D,U ,y
time = 1
[Command]
name = "AI9"
command = U, D, U, D, U, D, U ,D ,U ,D ,z
time = 1
[Command]
name = "AI10"
command = U, D, U, D, U, D, U, D ,U ,D ,a
time = 1
[Command]
name = "AI11"
command = U, D, U, D, U, D, U ,D,U,D,U,b
time = 1
[Command]
name = "AI12"
command = U, D, U, D, U, D, U ,D ,U ,D,c
time = 1
[Command]
name = "AI13"
command = U, D, U, D, U, D, U, D ,U ,D ,F
time = 1
[Command]
name = "AI14"
command = U, D, U, D, U, D, U ,D,U,D,U,B
time = 1
[Command]
name = "AI15"
command = U, D, U, D, U, D, U ,D ,U ,D,D,D
time = 1
[Command]
name = "AI16"
command = U, F, U, D, U, D, U ,D ,U ,D ,z
time = 1
[Command]
name = "AI17"
command = U, F, U, D, U, D, U, D ,U ,D ,a
time = 1
[Command]
name = "AI18"
command = U, F, U, D, U, D, U ,D,U,D,U,b
time = 1
[Command]
name = "AI19"
command = U, F, U, D, U, D, U ,U ,U ,D ,z
time = 1
[Command]
name = "AI20"
command = U, F, U, D, U, D, U, B ,U ,D ,a
time = 1
[Command]
name = "AI21"
command = U, F, U, D, B, D, U ,D,U,D,U,b
time = 1
[Command]
name = "AI22"
command = U, F, U, D, U, D, U ,U ,U ,D ,z,b
time = 1
[Command]
name = "AI23"
command = U, F, U, D, U, D, U, B ,U ,D ,a,c
time = 1
[Command]
name = "AI24"
command = U, F, U, D, B, D, U ,D,U,D,U,b,a
time = 1
[Command]
name = "AI25"
command = U, F, U, D, U, D, U ,U ,U ,D ,z,b,U
time = 1
[Command]
name = "AI26"
command = U, F, U, D, U, D, U, B ,U ,D ,a,c,D
time = 1
[Command]
name = "AI27"
command = U, F, U, D, B, D, U ,D,U,D,U,b,a,F
time = 1


;-| Special Motions |------------------------------------------------------
[Command]
name = "fatal1"
command = ~B, B, B, B, y
time = 33

[Command]
name = "fatal2"
command = F,F,F,y
time = 33


[Command]
name = "friendship"
command = ~D, D, U, U, b
time = 33

[Command]
name = "pit"
command = ~U, U, D, b
time = 33


[Command]
name = "QCB_x"
command = ~F, D, B, a

[Command]
name = "power"
command = ~F, F, y
time = 25

[Command]
name = "renda"
command = y, y
time = 20

[Command]
name = "renda2"
command = x, x
time = 20


[Command]
name = "gaia"
command = ~120b
time = 25


;

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
command = x+y
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
time = 1

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

[Command]
name = "b"
command = b
time = 1

[Command]
name = "c"
command = c
time = 1

[Command]
name = "x"
command = x
time = 1

[Command]
name = "y"
command = y
time = 1

[Command]
name = "z"
command = z
time = 1

[Command]
name = "start"
command = s
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdc"
command = /$c
time = 1


[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1

;---------------------------------------------------------------------------

[Statedef -1]

[State -1]
type = ChangeState
value = 24
triggerall = var(30) = 30
triggerall = p2stateno = 10001
triggerall = statetype = S
trigger1 = ctrl

[State -1]
type = ChangeState
value = 23
triggerall = var(30) = 30
triggerall = statetype = S
triggerall = ctrl
triggerall = p2life != 0
trigger1 = p2stateno = 222

[State -1, Stand Light Punch]
type = ChangeState
value = 220
triggerall = var(30) = 30
triggerall = p2bodydist X < 2
triggerall = ctrl
trigger1 = p2statetype = S
trigger1 = p2stateno != 222
trigger1 = statetype = S

[State -1, Stand Light Punch]
type = ChangeState
value = 430
triggerall = var(30) = 30
triggerall = ctrl
triggerall = statetype != A
trigger1 = p2bodydist X < 14
trigger1 = p2stateno = 222

[State -1, Stand Light Punch]
type = ChangeState
value = 240
triggerall = var(30) = 30
triggerall = ctrl
triggerall = statetype != A
trigger1 = p2bodydist X > 11
trigger1 = p2bodydist X < 15
trigger1 = p2statetype = S

[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = var(30) = 30
triggerall = statetype = S
triggerall = ctrl
trigger1 = p2bodydist X < 4
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
[State 810, State End]
type = ChangeState
triggerall = var(30) = 30
triggerall = var(20) != 4
triggerall = time = 35
trigger1 = stateno = 810
trigger2 = stateno = 811
value = 811

[State -1, Stand Light Punch]
type = ChangeState
value = 1000
triggerall = ctrl
triggerall = var(30) = 30
triggerall = statetype = S
trigger1 = p2bodydist X < 19
trigger1 = p2bodydist X > 5
trigger1 = p2stateno = 150
trigger2 = p2bodydist X < 24
trigger2 = p2bodydist X > 5
trigger2 = p2statetype = A
trigger3 = p2bodydist X < 20
trigger3 = p2bodydist X > 5
trigger3 = p2stateno = 5120

[State -1, Stand Light Punch]
type = ChangeState
value = 1100
triggerall = statetype != A
triggerall = ctrl
triggerall = NumprojID(1010) = 0
triggerall = var(30) = 30
trigger1 = var(31) = 0
trigger1 = p2bodydist X > 180
trigger1 = p2bodydist X < 280
trigger2 = p2bodydist X > 140
trigger2 = p2bodydist X < 280
trigger2 = p2stateno = 5120

[State -1, Stand Light Punch]
type = ChangeState
value = 1200
triggerall = statetype != A
triggerall = ctrl
triggerall = var(30) = 30
trigger1 = var(31) = 1
trigger1 = p2bodydist X > 180
trigger1 = p2statetype = S
trigger1 = p2movetype = A


[State -1, Stand Light Punch]
type = ChangeState
value = 310
triggerall = var(30) = 30
triggerall = var(31) = 0
trigger1 = p2bodydist X < 28
trigger1 = p2bodydist X > 24
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = statetype = S
trigger1 = ctrl

[State -1]
type = ChangeState
value = 23
triggerall = var(30) = 30
triggerall = statetype = S
triggerall = ctrl
triggerall = p2life != 0
trigger1 = var(31) = 1
trigger1 = p2bodydist X < 190
trigger1 = p2bodydist X > 120
trigger1 = p2statetype = S
trigger1 = p2movetype != H


;-----------------------------------------------------------------------
[State -1, Combo condition Reset]
type = VarSet
trigger1 = 1
var(1) = 0

[State -1, Combo condition Check]
type = VarSet
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact
var(1) = 1
;---------------------------------------------------------------------------
[State -1, Combo condition Reset]
type = VarSet
trigger1 = command = "renda"
var(17) = 1

[State -1, Combo condition Reset]
type = VarSet
trigger1 = command = "renda2"
var(19) = 1

;---------------------------------------------------
[State -1]
type = Varset
triggerall = var(30) != 30
trigger1 = command = "AI1"
trigger2 = command = "AI2"
trigger3 = command = "AI3"
trigger4 = command = "AI4"
trigger5 = command = "AI5"
trigger6 = command = "AI6"
trigger7 = command = "AI7"
trigger8 = command = "AI8"
trigger9 = command = "AI9"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
v = 30
value = 30

;------------------------------------------
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 3000
triggerall = p2stateno = 10001
triggerall = var(41) = 1
triggerall = command = "fatal1"
triggerall = statetype = S
triggerall = ctrl
triggerall = p2bodydist X < 25
trigger1 = p2name = "jax"
trigger1 = enemy,Authorname = "nyo"
trigger2 = p2name = "baraka"
trigger2 = enemy,Authorname = "nyo"
trigger3 = p2name = "kitana"
trigger3 = enemy,Authorname = "nyo"

[State -1, Light Kung Fu Palm]
type = ChangeState
value = 3000
triggerall = p2stateno = 10001
triggerall = var(41) = 1
triggerall = command = "c"
triggerall = command = "holdfwd"
triggerall = statetype = S
triggerall = ctrl
triggerall = p2bodydist X < 25
trigger1 = p2name = "jax"
trigger1 = enemy,Authorname = "nyo"
trigger2 = p2name = "baraka"
trigger2 = enemy,Authorname = "nyo"
trigger3 = p2name = "kitana"
trigger3 = enemy,Authorname = "nyo"

;------------------------------------------
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 3100
triggerall = p2stateno = 10001
triggerall = var(41) = 1
triggerall = command = "friendship"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Light Kung Fu Palm]
type = ChangeState
value = 3100
triggerall = p2stateno = 10001
triggerall = var(41) = 1
triggerall = command = "c"
triggerall = command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl

;------------------------------------------
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 3500
triggerall = p2stateno = 10001
triggerall = var(41) = 1
triggerall = command = "pit"
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = p2bodydist X < 15

[State -1, Light Kung Fu Palm]
type = ChangeState
value = 3500
triggerall = p2stateno = 10001
triggerall = var(41) = 1
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = p2bodydist X < 15

;------------------------------------------
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 3600
triggerall = p2stateno = 10001
triggerall = var(41) = 1
triggerall = command = "fatal2"
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = p2bodydist X < 25

[State -1, Light Kung Fu Palm]
type = ChangeState
value = 3600
triggerall = p2stateno = 10001
triggerall = var(41) = 1
triggerall = command = "c"
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = p2bodydist X < 25

;---------------------------------------------------------------------------
[State -1, Fast Kung Fu Blow]
type = ChangeState
value = 1200
triggerall = command = "gaia"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, Fast Kung Fu Blow]
type = ChangeState
value = 1100
triggerall = NumProjID(1010) = 0
triggerall = command = "QCB_x"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1000
trigger1 = command = "power"
trigger1 = statetype = S
trigger1 = ctrl


;---------------------------------------------------------------------------
[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

;===========================================================================
[State -1, Stand Light Punch]
type = ChangeState
value = 300
triggerall = command = "a"
triggerall = command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Stand Light Punch]
type = ChangeState
value = 310
triggerall = command = "b"
triggerall = command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl

;===========================================================================
[State -1, Stand Light Punch]
type = ChangeState
value = 220
triggerall = command = "x"
triggerall = p2bodydist X < 2
triggerall = command != "holddown"
trigger1 = p2statetype != A
trigger1 = p2stateno != 222
trigger1 = statetype = S
trigger1 = ctrl
;---------------------------------------------------------------------------

[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Stand Strong Punch
;p`
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl


;---------------------------------------------------------------------------
[State -1, Stand Light Kick]
type = ChangeState
value = 260
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = p2bodydist X < 2
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Stand Light Kick]
type = ChangeState
value = 260
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = p2bodydist X < 2
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl


;---------------------------------------------------------------------------
;Standing Strong Kick
;LbN
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 10
;---------------------------------------------------------------------------


;---------------------------------------------------------------------------
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl


;---------------------------------------------------------------------------
[State -1, Crouching Light Kick]
type = ChangeState
value = 420
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl


;---------------------------------------------------------------------------
[State -1, Crouching Strong Kick]
type = ChangeState
value = 430
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl


;---------------------------------------------------------------------------
;Jump Light Punch
;󒆎p`
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl


[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl


;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "a"
trigger1 = vel X = 0
trigger1 = statetype = A
trigger1 = ctrl
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "b"
trigger1 = vel X = 0
trigger1 = statetype = A
trigger1 = ctrl

;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1350 ;Air blocking

